﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="School.aspx.cs" Inherits="HealthSystem.School" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
   <ext:PageManager ID="PageManager1" runat="server" AutoSizePanelID="panle1" />
     <ext:Panel  runat="server" ID="panle1" Layout="Fit" Title="学校查询">
        <Toolbars>
            <ext:Toolbar runat="server">
                <Items>
                      <ext:Label runat="server" Text="选择地区:" ID="lable1"></ext:Label>
                      <ext:TriggerBox runat="server" ID="name" EnableEdit="false"></ext:TriggerBox>
                      <ext:HiddenField runat="server" ID="districtid"></ext:HiddenField>
                      <ext:HiddenField runat="server" ID="actionbt"></ext:HiddenField>
                      <ext:ToolbarSeparator runat="server"></ext:ToolbarSeparator>
                      <ext:TriggerBox runat="server" ID="searchbox" EmptyText="输入学校名称查询" TriggerIcon="Search" OnTriggerClick="Search_Clik"></ext:TriggerBox>
                     <ext:ToolbarFill ID="ToolbarFill1" runat="server"></ext:ToolbarFill>
                     <%--<ext:Button runat="server" Text="新增学校" ID="Newbt"></ext:Button>--%>
                </Items>
            </ext:Toolbar>
        </Toolbars>
        <Items>
            <ext:Grid runat="server" ID="Gird1" DataKeyNames="SchoollCode,schoolname,Permit" EnableTextSelection="true" AllowPaging="true" IsDatabasePaging="true" EnableRowNumber="true"
             OnRowDoubleClick="Grid1_DoubleClick" EnableRowDoubleClick="true" ShowHeader="false" OnPageIndexChange="PageIndexChange"  OnRowCommand="Grid1_RowCommand">
                <Columns>
                    <ext:BoundField DataField="OrgName" HeaderText="体检机构" Width="140px" />
                    <ext:BoundField DataField="schoolname" HeaderText="学校名称" Width="110px"/>
                    <ext:BoundField DataField="SchoolType" HeaderText="学校类型" Width="60px" />
                    <ext:BoundField DataField="LinkMan" HeaderText="联系人" Width="60px" />
                    <ext:BoundField DataField="OfficePhone" HeaderText="电话" />
                    <ext:BoundField DataField="MobilePhone" HeaderText="手机" />
                    <ext:BoundField DataField="Email" HeaderText="邮箱" />
     <%--               <ext:BoundField DataField="XX_UserName" HeaderText="学校帐户" />--%>
                    <ext:BoundField DataField="cityname" HeaderText="所属城市" Width="60px" />
                    <ext:BoundField DataField="districtname" HeaderText="所属区县" Width="60px" />
                    <ext:BoundField DataField="Statute" HeaderText="学校状态" Width="60px" />
                     <ext:CheckBoxField DataField="Permit" SortField="Permit" HeaderText="是否授权" RenderAsStaticField="true"
                             Width="50px" />
                     <ext:WindowField ColumnID="myWindowField" Width="60px" WindowID="Window2" HeaderText="查看地图"
                 Text="地图" ToolTip="地图" DataTextFormatString="{0}" DataIFrameUrlFields="SchoollCode"
                DataIFrameUrlFormatString="~/map/webform1.aspx?skey={0}&stype=School" DataWindowTitleField="schoolname"
                DataWindowTitleFormatString="地标 - {0}" />
             <%--       <ext:LinkButtonField HeaderText="重置密码" TextAlign="Center" ConfirmText="你确定要重置密码？" ConfirmTarget="Top"
                ColumnID="lbfAction2" Width="70px" CommandName="reset" Text="重置密码" />--%>
                  <%--  <ext:WindowField ColumnID="myWindowField" Width="60px" WindowID="Window1" HeaderText="修改学校"
                Icon="Pencil" ToolTip="编辑" DataTextFormatString="{0}" DataIFrameUrlFields="SchoollCode"
                DataIFrameUrlFormatString="School_Edit.aspx?id={0}" DataWindowTitleField="schoolname"
                DataWindowTitleFormatString="编辑 - {0}"  />--%>
                </Columns>
            </ext:Grid>
        </Items>
    </ext:Panel>
     <ext:Window ID="Window1" CloseAction="HidePostBack" runat="server" IsModal="true" Hidden="true" Target="Self"
        EnableResize="true" EnableMaximize="true" EnableIFrame="true" IFrameUrl="about:blank"
        Width="200px" Height="550px" OnClose="Window1_Close">
    </ext:Window>
    <ext:Window ID="Window2" CloseAction="HidePostBack" runat="server" IsModal="true" Hidden="true" Target="Self"
        EnableResize="true" EnableMaximize="true" EnableIFrame="true" IFrameUrl="about:blank"
        Width="800px" Height="550px" >
    </ext:Window>
    <ext:Window ID="Window3" CloseAction="HidePostBack" runat="server" IsModal="true" Hidden="true" Target="Self"
        EnableResize="true" EnableMaximize="true" EnableIFrame="true" IFrameUrl="about:blank"
        Width="200px" Height="100px" >
    </ext:Window>
    </form>
</body>
</html>
